@import '../../var.scss';
.swiper-tab {
  display: flex;
  width: 100%;
  height: 64rpx;
  color: $info-color;
  font-size: 28rpx;
  background-color: #fff;

  &.fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 5;
    margin-top: 0;
    border-bottom: 1px solid #f4f5f5;
  }
}

.swiper-tab-item {
  margin-right: 30rpx;
  height: 100%;
  line-height: 64rpx;
  font-size: 28rpx;
  text-align: center;
  &.active {
    color: $title-color;
    border-bottom: 2px solid $primary;
  }
}
.tab-container {
  &.hidden {
    display: none;
  }
  &.show {
    display: block;
  }
  .container {
    &.commodities {
      padding: 30rpx 30rpx 0 30rpx;
      .productList {
        display: inline-block;
        width: 330rpx;
        margin-bottom: 34rpx;
        overflow: hidden;
        background: rgba(255, 255, 255, 1);
        border-radius: 20rpx;
        &.border {
          height: 524rpx;
          border: 1rpx solid $border-color;
        }
      }
      .productList:nth-child(2n) {
        margin-left: 28rpx;
      }
    }
  }
}
